# -*- coding:utf-8 -*-
# @FileName  :ent_business_params.py
# @Time      :2020/12/7 16:46
# @Author    :Zhoujirong
# @Desc      :
from common.http_request import Request
from biz.support.urls import ServerUrl

class EntBusinessParamsRequest:
    @classmethod
    def business_params_detail(cls,id,cookie):
        data = {
            'id':id
        }
        req = Request(ServerUrl.ent_business_params_detail_url,data=data,headers=cookie)
        return req.post()

    @classmethod
    def business_params_getpage(cls,curPage,maxSize,search_LIKE_configName,search_LIKE_configDesc,cookie):
        data = {
            'curPage':curPage,
            'maxSize':maxSize,
            'search_LIKE_configName':search_LIKE_configName,
            'search_LIKE_configDesc':search_LIKE_configDesc
        }
        req = Request(ServerUrl.ent_business_params_getpage_url,params=data,headers=cookie)
        return req.get()
    
    @classmethod
    def business_params_update(cls,configDesc,configId,configName,configValue,
                                    createTime,createUser,ext1,ext2,ext3,ext4,
                                    ext5,ext6,orgId,resCode,resMsg,serialNumber,
                                    updateTime,updateUser,cookie):
        data = {
                'configDesc':configDesc,
                'configId':configId,
                'configName':configName,
                'configValue':configValue,
                'createTime':createTime,
                'createUser':createUser,
                'ext1':ext1,
                'ext2':ext2,
                'ext3':ext3,
                'ext4':ext4,
                'ext5':ext5,
                'ext6':ext6,
                'orgId':orgId,
                'resCode':resCode,
                'resMsg':resMsg,
                'serialNumber':serialNumber,
                'updateTime':updateTime,
                'updateUser':updateUser
        }
        req = Request(ServerUrl.ent_business_params_update_url,data=data,headers=cookie)
        return req.post()



if __name__ == "__main__":
    pass